package org.tongdao.yulong.b_scope;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description: TODO
 * @author: 殷玉龙
 * @date: 2021年01月11日 下午5:57
 */
public class BeanScopeAnnoApplication {
  public static void main(String[] args) {
    ApplicationContext ctx = new AnnotationConfigApplicationContext(BeanScopeConfiguration.class);
    ctx.getBeansOfType(Child.class).forEach((name,child)->{
      System.out.println(name + " : " + child);

    });
  }
}
